package com.learn.elasticsearch.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class TableDataInfo implements Serializable {

    private static final long serialVersionUID = -5131701252461777651L;
    /**
     * 总记录数
     */
    private long total;

    /**
     * 列表数据
     */
    private List<?> records;

    public TableDataInfo(List<?> records, long total) {
        this.total = total;
        this.records = records;
    }
}
